import { DataSource } from 'typeorm'
import { User } from './entities/User'
import { Article } from './entities/Article'
import { Tag } from './entities/Tag'

export const AppDataSource = new DataSource({
  type: 'mysql',
  host: 'localhost',
  port: 3306,
  username: 'root',
  password: '123456',
  database: 'blog',
  synchronize: true,
  entities: [User, Article, Tag]
})
